// src/stores/loading.js
import { defineStore } from 'pinia';

export const useLoadingStore = defineStore('loading', {
  state: () => ({
    isLoading: false,
  }),
  actions: {
    show() {
      this.isLoading = true;
      console.log(this.isLoading);
      
    },
    hide() {
      this.isLoading = false;
      console.log(this.isLoading);
    },
  },
});